package com.aaa.system.dao;

import com.aaa.common.entity.AclRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author ：Mickey
 * @date ：Created in 2022/12/5 19:50
 * @description：
 * @modified By：
 * @version:
 */
public interface AclRoleDao extends BaseMapper<AclRole> {

    @Select(value = "select distinct r.* from acl_role r join acl_user_role ur on r.id=ur.role_id where ur.user_id=#{userid}")
    List<AclRole> selectByUserid(Long userid);
    


}
